<script setup>
import { ref } from 'vue';
import axios from 'axios';
import { ElMessage } from 'element-plus'; // 确保正确导入 ElMessage
// 轮播数组
const carouImg=ref([
    {url:''},
    {url:''},
    {url:''},
    {url:''}
])
</script>
<template>
    <div class="head-body">
        <div class="block text-center" m="t-4">
            <el-carousel trigger="click" height="300px">
                <el-carousel-item v-for="item in 4" :key="item">
                    <h3 class="small justify-center" text="2xl">{{ item}}</h3>
                </el-carousel-item>
            </el-carousel>
        </div>
    </div>
</template>
<style scoped>
.head-body {
    margin: auto;
    width: 1912px;
    height: 1000px;
    border: 1px solid black;
}
.el-carousel__item h3 {
  color: #cdcecf;
  opacity: 0.75;
  line-height: 150px;
  margin: 0;
  text-align: center;
}
.el-carousel__item:nth-child(2n) {
  background-color: #4d7dc0;
}
.el-carousel__item:nth-child(2n + 1) {
  background-color: #990b2a;
}
</style>